Optimal. Leaf size=83 \[ \frac {c x}{e^2}+\frac {\left (a+\frac {d (c d-b e)}{e^2}\right ) x}{2 d \left (d+e x^2\right )}-\frac {\left (3 c d^2-e (b d+a e)\right ) \tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{2 d^{3/2} e^{5/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 87, normalized size of antiderivative = 1.05, number of steps
used = 3, number of rules used = 3, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.136, Rules used = {1171, 396, 211}
\begin {gather*} -\frac {\text {ArcTan}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right ) \left (3 c d^2-e (a e+b d)\right )}{2 d^{3/2} e^{5/2}}+\frac {x \left (a e^2-b d e+c d^2\right )}{2 d e^2 \left (d+e x^2\right )}+\frac {c x}{e^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 211
Rule 396
Rule 1171
Rubi steps
\begin {align*} \int \frac {a+b x^2+c x^4}{\left (d+e x^2\right )^2} \, dx &=\frac {\left (a+\frac {d (c d-b e)}{e^2}\right ) x}{2 d \left (d+e x^2\right )}-\frac {\int \frac {\frac {c d^2-e (b d+a e)}{e^2}-\frac {2 c d x^2}{e}}{d+e x^2} \, dx}{2 d}\\ &=\frac {c x}{e^2}+\frac {\left (a+\frac {d (c d-b e)}{e^2}\right ) x}{2 d \left (d+e x^2\right )}-\frac {\left (3 c d^2-e (b d+a e)\right ) \int \frac {1}{d+e x^2} \, dx}{2 d e^2}\\ &=\frac {c x}{e^2}+\frac {\left (a+\frac {d (c d-b e)}{e^2}\right ) x}{2 d \left (d+e x^2\right )}-\frac {\left (3 c d^2-e (b d+a e)\right ) \tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{2 d^{3/2} e^{5/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 88, normalized size = 1.06 \begin {gather*} \frac {c x}{e^2}+\frac {\left (c d^2-b d e+a e^2\right ) x}{2 d e^2 \left (d+e x^2\right )}-\frac {\left (3 c d^2-b d e-a e^2\right ) \tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{2 d^{3/2} e^{5/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.13, size = 79, normalized size = 0.95
method | result | size |
default | \(\frac {c x}{e^{2}}+\frac {\frac {\left (a \,e^{2}-d e b +c \,d^{2}\right ) x}{2 d \left (e \,x^{2}+d \right )}+\frac {\left (a \,e^{2}+d e b -3 c \,d^{2}\right ) \arctan \left (\frac {e x}{\sqrt {d e}}\right )}{2 d \sqrt {d e}}}{e^{2}}\) | \(79\) |
risch | \(\frac {c x}{e^{2}}+\frac {\left (a \,e^{2}-d e b +c \,d^{2}\right ) x}{2 d \,e^{2} \left (e \,x^{2}+d \right )}-\frac {\ln \left (e x +\sqrt {-d e}\right ) a}{4 \sqrt {-d e}\, d}-\frac {\ln \left (e x +\sqrt {-d e}\right ) b}{4 e \sqrt {-d e}}+\frac {3 d \ln \left (e x +\sqrt {-d e}\right ) c}{4 e^{2} \sqrt {-d e}}+\frac {\ln \left (-e x +\sqrt {-d e}\right ) a}{4 \sqrt {-d e}\, d}+\frac {\ln \left (-e x +\sqrt {-d e}\right ) b}{4 e \sqrt {-d e}}-\frac {3 d \ln \left (-e x +\sqrt {-d e}\right ) c}{4 e^{2} \sqrt {-d e}}\) | \(185\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.50, size = 74, normalized size = 0.89 \begin {gather*} c x e^{\left (-2\right )} - \frac {{\left (3 \, c d^{2} - b d e - a e^{2}\right )} \arctan \left (\frac {x e^{\frac {1}{2}}}{\sqrt {d}}\right ) e^{\left (-\frac {5}{2}\right )}}{2 \, d^{\frac {3}{2}}} + \frac {{\left (c d^{2} - b d e + a e^{2}\right )} x}{2 \, {\left (d x^{2} e^{3} + d^{2} e^{2}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.35, size = 266, normalized size = 3.20 \begin {gather*} \left [\frac {6 \, c d^{3} x e + 2 \, a d x e^{3} + {\left (3 \, c d^{3} - a x^{2} e^{3} - {\left (b d x^{2} + a d\right )} e^{2} + {\left (3 \, c d^{2} x^{2} - b d^{2}\right )} e\right )} \sqrt {-d e} \log \left (\frac {x^{2} e - 2 \, \sqrt {-d e} x - d}{x^{2} e + d}\right ) + 2 \, {\left (2 \, c d^{2} x^{3} - b d^{2} x\right )} e^{2}}{4 \, {\left (d^{2} x^{2} e^{4} + d^{3} e^{3}\right )}}, \frac {3 \, c d^{3} x e + a d x e^{3} - {\left (3 \, c d^{3} - a x^{2} e^{3} - {\left (b d x^{2} + a d\right )} e^{2} + {\left (3 \, c d^{2} x^{2} - b d^{2}\right )} e\right )} \sqrt {d} \arctan \left (\frac {x e^{\frac {1}{2}}}{\sqrt {d}}\right ) e^{\frac {1}{2}} + {\left (2 \, c d^{2} x^{3} - b d^{2} x\right )} e^{2}}{2 \, {\left (d^{2} x^{2} e^{4} + d^{3} e^{3}\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 153 vs.
\(2 (75) = 150\).
time = 0.43, size = 153, normalized size = 1.84 \begin {gather*} \frac {c x}{e^{2}} + \frac {x \left (a e^{2} - b d e + c d^{2}\right )}{2 d^{2} e^{2} + 2 d e^{3} x^{2}} - \frac {\sqrt {- \frac {1}{d^{3} e^{5}}} \left (a e^{2} + b d e - 3 c d^{2}\right ) \log {\left (- d^{2} e^{2} \sqrt {- \frac {1}{d^{3} e^{5}}} + x \right )}}{4} + \frac {\sqrt {- \frac {1}{d^{3} e^{5}}} \left (a e^{2} + b d e - 3 c d^{2}\right ) \log {\left (d^{2} e^{2} \sqrt {- \frac {1}{d^{3} e^{5}}} + x \right )}}{4} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 4.11, size = 75, normalized size = 0.90 \begin {gather*} c x e^{\left (-2\right )} - \frac {{\left (3 \, c d^{2} - b d e - a e^{2}\right )} \arctan \left (\frac {x e^{\frac {1}{2}}}{\sqrt {d}}\right ) e^{\left (-\frac {5}{2}\right )}}{2 \, d^{\frac {3}{2}}} + \frac {{\left (c d^{2} x - b d x e + a x e^{2}\right )} e^{\left (-2\right )}}{2 \, {\left (x^{2} e + d\right )} d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.36, size = 77, normalized size = 0.93 \begin {gather*} \frac {c\,x}{e^2}+\frac {\mathrm {atan}\left (\frac {\sqrt {e}\,x}{\sqrt {d}}\right )\,\left (-3\,c\,d^2+b\,d\,e+a\,e^2\right )}{2\,d^{3/2}\,e^{5/2}}+\frac {x\,\left (c\,d^2-b\,d\,e+a\,e^2\right )}{2\,d\,\left (e^3\,x^2+d\,e^2\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________